<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .checkbox {
        position: relative;
        width: 20px;
        height: 20px;
      }

      .checkbox input {
        position: absolute;
        z-index: 2;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
      }

      .checkbox span {
        position: absolute;
        z-index: 1;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url("./assets/checkbox.png") no-repeat;
        background-size: 100%;
      }

      .checkbox input:checked + span {
        background-image: url("./assets/checkbox_active.png");
      }
    </style>
  </head>
  <body>
    <div class="checkbox">
      <input type="checkbox" />
      <span></span>
    </div>
  </body>
</html>
